package com.by;

import java.util.HashSet;
import java.util.List;
import java.util.Set;

public class Student {
    private String studentId;
    private String name;
    private Set<Course> courses = new HashSet<>();

    public Student(String studentId, String name) {
        this.studentId = studentId;
        this.name = name;
    }

    // Getters & Setters
    public void addCourse(Course course) {
        courses.add(course);
    }

    public Set<Course> getCourses() {
        return courses;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getStudentId() {
        return studentId;
    }

    public void setStudentId(String studentId) {
        this.studentId = studentId;
    }
}